home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / xlib05.zip / DEMO6.C < prev    next >
Text File  |  1993-08-25  |  399b  |  22 lines

  1. #include <conio.h>
  2.  
  3. #include "xlib.h"
  4. #include "xcircle.h"
  5.  
  6. void main(void)
  7. {
  8.     int i;
  9.  
  10.     x_set_mode(1, 320);
  11.     for (i = 0; i < 120; i++) {
  12.         x_circle(0, 0, i, 121 - i, 0);
  13.         x_circle(319 - i, 0, i, i - 20, 0);
  14.         x_circle(0, 239 - i, i, i - 20, 0);
  15.         x_circle(319 - i, 239 - i, i, 121 - i, 0);
  16.         x_filled_circle(40 + i, i, 241 - (i << 1), i+1, 0);
  17.     }
  18.     getch();
  19.  
  20.     x_text_mode();
  21. }
  22.